package com.infoland.afanmall.base.util;

public class CONST {

    /***----------------->   开发IP  <-----------------***/
    public static final String HTTP = "https://ta.aft100.com/";// 最新测试地址
//    public static final String HTTP = "http://47.94.224.126:7071/";// 最新测试地址
//    public static final String HTTP = "http://10.0.1.153:7071/";// 最新测试地址
//    public static final String HTTP = "http://101.200.56.9:8080/";// 路径前缀

    /***----------------->   测试IP  <-----------------***/
    public static final String TEST_HTTP = "http://ta.aft100.com/";// 路径前缀

    /***----------------->   故事  <-----------------***/
    public static final String STORY_LIST = "rest/story/listStory"; //故事列表
    public static final String STORY_GET_BY_ID = "rest/story/getStory"; //故事详情

    /***----------------->   优选开始  <-----------------***/
    public static final String BANNER_YX = "rest/adver/getCarousel"; //Banner
    public static final String OPTION_YX = "rest/adver/getCarousel"; //选项卡
    public static final String GOOD_INFO = "rest/goods/getGoodsDetails?access_token="; //商品详情
    //    public static final String GOOD_TIME_BY = "rest/goods/getGoodsHot"; //爆款商品
    public static final String OPTION_PT = "rest/goods/getGoodsByGoodsCateId"; //分页查询商品
    public static final String ZHUI_SU = "rest/goods/traceQr?goodsId="; //追溯信息
    public static final String HTTP_OPTION_PT = HTTP + OPTION_PT; //分页查询商品

    /***----------------->   购物车开始  <-----------------***/
    public static final String CART_SHOW = "rest/getUserCart"; //查询购物车
    public static final String CART_INSERT = "rest/saveGoodsOnCart?access_token="; //添加商品到购物车
    public static final String CART_SPREC = "rest/goods/goodsSpecList"; //查询商品属性集合
    public static final String GUI_GE_PRICE = "rest/goods/goodsPrice"; //查询商品属性价格
    public static final String GET_USER_CART = "rest/getUserCart?access_token=";//获取购物车信息
    public static final String DELETE_USER_CARTS = "rest/deleteUserCarts?access_token=";//删除购物车
    public static final String ORDER_GET_GOOD_LIST_BY_CART = "rest/getGoodsListOnCartList?access_token=";//获取购物车所有数据（下单用）

    /***----------------->   用户操作  <-----------------***/
    public static final String USER_INFO = "rest/info?access_token=";//获取当前登录账户信息
    public static final String WEI_XIN_LOGIN = "rest/weixinLogin";//微信授权登录
    public static final String USER_REGIST = "rest/regist"; //注册账号
    public static final String USER_LOGIN = "rest/login"; //用户登陆
    public static final String REFERENCE_TOKEN = "rest/refreshAccessToken"; //刷新Tocken
    public static final String WX_GZH_LOGIN = "rest/weixinMpLogin"; //微信公众号登陆
    public static final String WX_SC_LOGIN = "rest/weixinLogin"; //微信授权登陆
    public static final String SEND_VALIDATE_CODE = "rest/sendValidateCode";//发送验证码
    public static final String CHECK_VALIDATE_CODE = "rest/checkValidateCode";//检查验证码
    public static final String UPDATE_PASSWORD = "rest/updatePassword?access_token=";//修改密码
    public static final String UPDATE_NICK_NAME = "rest/updateNickName?access_token=";//修改昵称
    public static final String REST_PASSWORD = "rest/resetPassword";//重置密码（忘记密码）
    public static final String USER_DEFAULT_ADDRESS = "rest/getUserDefaultFlagAddress?access_token=";//获取用户默认地址
    public static final String UPDATE_DEFAULT_ADDRESS = "rest/updateDefaultFlag?access_token=";//更新用户默认地址
    public static final String DELETE_ADDRESS = "rest/deleteUserAddress?access_token";//删除地址
    public static final String SAVE_OR_UPDATE_ADDRESS = "rest/saveOrUpdateUserAddress?access_token=";//添加或者更新用户地址
    public static final String GET_ALL_ADDRESS = "rest/getUserAddress?access_token=";//查询所有用户地址
    public static final String SELECT_ADDRESS_BY_ID = "rest/getUserAddressDetails?access_token=";//查询指定地址详情
    public static final String SAVE_FAVORITES = "rest/saveFavorites?access_token=";//保存收藏
    public static final String DELETE_FAVORITES = "rest/deleteFavorites?access_token=";//删除收藏
    public static final String SELECT_FAVORITES = "rest/listFavorites?access_token=";//查询收藏
    public static final String INSERT_LABLE = "rest/listFavorites?access_token=";//添加地址标签
    public static final String SELECT_LABLE = "rest/listFavorites?access_token=";//查询地址标签

    /***----------------->   扶贫管  <-----------------***/
    public static final String FU_PIN_GUAN = "rest/fupinguan/listFupinguan?access_token=";//扶贫管轮播
    public static final String FU_PIN_GUAN_GOODS = "rest/fupinguan/listFupinguanGoods";//扶贫管商品
    public static final String FU_PIN_CUN = "rest/fupinguan/listFupincun";//扶贫村子
    public static final String FU_PIN_CUN_GOODS = "rest/fupinguan/listFupincunGoods";//扶贫村商品
    public static final String FU_PIN_CUN_INFO = "rest/fupinguan/getFupincun";//扶贫村子详情

    /***----------------->   评价  <-----------------***/
    public static final String PING_JIA_ORDER = "rest/order/evaluate";//评价订单
    public static final String SELECT_PING_JIA_GOODS = "rest/goods/listGoodsEvaluate";//商品评价查询（分页）
    public static final String SELECT_PING_JIA_ORDER = "rest/order/listOrderEvaluate?access_token=";//订单评价查询（分页）

    /***----------------->   支付  <-----------------***/
    public static final String PAY_WEI_XIN = "rest/pay/wxPay?access_token=";//微信支付


    /***----------------->   订单操作  <-----------------***/
    public static final String ORDER_SUBMIT_NOW_BY = "rest/order/submitOrder?access_token=";//提交订单--立即购买
    public static final String ORDER_SUBMIT_CART = "rest/order/submitCartOrder?access_token=";//提交订单--购物车
    public static final String ORDER_FIND_BY_ID_OR_CODE = "rest/order/findByOrderIdOnOCode?access_token=";//查询订单（根据Code或order_id）
    public static final String ORDER_LIST = "rest/order/getOrderList?access_token=";//查询订单（分页查询）
    public static final String ORDER_DELETE = "rest/order/deleteOrder?access_token=";//删除订单
    public static final String ORDER_INFO = "rest/order/getOrder?access_token=";//订单详情

    /***----------------->   微信相关信息（开发版本（18-06-00 至 18.09.01））  <-----------------***/
    public static final String WEIXIN_APP_ID = "wxd5767fafc510e008";//开放平台 注册的Appid
    public static final String WEIXIN_APP_SECRET = "1a316c8c102cbfb150843bcca3f2b668";//开放平台 注册的 secret（秘钥）
    public static final String WEIXIN_STATE = "1a31asdasd68369";//随机数
    public static final String WEIXIN_SCOPE = "snsapi_userinfo";//参数（获取用户信息）

    /***----------------->   商品调起弹窗的Type  <-----------------***/
    public static final String OPEN_NOW_BY = "now_by"; //立即购买商品
    public static final String OPEN_INSERT_CART = "insert_cart";//添加购物车
    public static final String OPEN_SELECT_GUI_GE = "select_gui_ge";//选择规格

    /***----------------->   支付 Dialog使用的 CartType  <-----------------***/
    public static final String ORDER_TYPE_NOW_BY = "cart_now_by"; //立即--购买商品
    public static final String ORDER_TYPE_CART = "cart_by"; //从购物车--购买商品

    /***----------------->   系列商品  <-----------------***/
    public static final String GET_XI_LIE_LIST = "rest/goods/getGoodsAggregationList"; //获取产品系列列表
    public static final String GET_GOOD_SERIES = "rest/goods/getGoodsSeries";//获取系列产品

    /***----------------->   订单跳转订单详情  <-----------------***/
    public static final int ORDER_TO_INFO_TYPE_IS_PAY = 11;//已经支付
    public static final int ORDER_TO_INFO_TYPE_NO_PAY = 12;//没有支付
    public static final int ORDER_TO_INFO_TYPE_IS_CLOSE = 13;//已经关闭
    public static final int ORDER_TO_INFO_TYPE_IS_OK = 14;//已经完成
    public static final int ORDER_TO_INFO_TYPE_IS_FA_HUO = 15;//已经发货

    /***----------------->   分页Size  <-----------------***/

    public static final int All_FRAGMENT_PAGE_SIZE = 4;//全部订单分页
    public static final int DFK_FRAGMENT_PAGE_SIZE = 4;//代付款分页
    public static final int DPJ_FRAGMENT_PAGE_SIZE = 4;//待评价分页
    public static final int DSH_FRAGMENT_PAGE_SIZE = 4;//待收货分页
    public static final int DFH_FRAGMENT_PAGE_SIZE = 4;//代发货分页
    public static final int STORY_FRAGMENT_PAGE_SIZE = 5;//故事分页
    public static final int PT_PAGE_SIZE = 1; //普通商品分页大小
    public static final int FU_PIN_GOOD_SIZE = 6; //扶贫馆商品分页大小
    public static final int FU_PIN_CUN_ZI_SIZE = 100; //扶贫村子分页大小(横向查询)
    public static final int FU_PIN_CUN_PAGE_SIZE = 12; //扶贫村子分页大小（Activity显示）
    public static final int FU_PIN_CUN_GOOD_SIZE = 8; //扶贫村子商品分页大小（Activity显示）


    /***----------------->   Activity跳转状态码  <-----------------***/
    public static final int RESULT_ORDER_TO_YOU_XUAN = 66;//从订单页，回到主Activity
    public static final int RESULT_CODE_TO_FU_PIN_CITY = 77;//从订单页，回到主Activity


    public static class ZhongChou {
        //                 "sylb"
//                         "gushi"
//                         "app_start"
//                         "app_dao_hang"
        //        排序     0:综合推荐，  1:即将上线， 2:即将结束， 3:正在进行， 4：人数最多， 5 金额最多
        public static final String BANNER_TYPE = "crowd_advs";//众筹轮播
        public static final int ZONG_HE = 0;//综合推荐
        public static final int JJ_SHANG_XIAN = 1;//即将上线
        public static final int JJ_JIE_SHU = 2;//即将结束
        public static final int ZZ_JIN_XING = 3;//正在进行
        public static final int RS_ZUI_DUO = 4;//人数最多
        public static final int JE_ZUI_DUO = 5;//金额最多

        public static final int INIT_SIZE = 10; //（众筹PageSize）
        public static final int LOAD_SIZE = 5; //（众筹LoadSize）

        public static final String URL_GET_LIST = "rest/activity/crowd/listCrowd";//众筹分页查询

    }

    public static class PinTuan{
        public static final String BANNER_TYPE = "pt_lb";//拼团轮播
        public static final String URL_GET_LIST = "rest/activity/group/listGroupBuying";//获取拼团产品
    }


}
